#ifndef HTMLSYNTAXHIGHLIGHTER_H
#define HTMLSYNTAXHIGHLIGHTER_H

#include <QSyntaxHighlighter>

class HtmlSyntaxHighlighter : public QSyntaxHighlighter
{
    Q_OBJECT
public:
    explicit HtmlSyntaxHighlighter(QObject *parent = 0);

    void highlightBlock(const QString &text);

private:
    enum Construct {
        Element,
        Quote,
        Comment,
        Entity,
        Attribute,
        Generic,
        LastConstruct
    };

    enum State {
        NormalState,
        InElement,
        InQuote,
        InComment,
        InAttributeList
    };

    QTextCharFormat formats_[LastConstruct];
    
signals:
    
public slots:
    
};

#endif // HTMLSYNTAXHIGHLIGHTER_H
